package com.example.controller;

import com.example.service.IndexEchartsServices;
import com.example.service.JgCustomCountService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("api/indexEcharts")
public class IndexEchartsController {

    @Autowired
    IndexEchartsServices indexEchartsServices;
    //查询各区域电梯数量

    @ApiOperation(value = "辖区内电梯类型分布", notes = "辖区内电梯类型分布")
    @RequestMapping(value = "/countTypeDistribType", method = RequestMethod.POST)
    private  Map<String, Object> countTypeDistribType(@RequestBody Map map) {
        return indexEchartsServices.countTypeDistribType(map);
    }

    // 安全主体责任排行榜
    @ApiOperation(value = "安全主体责任排行绑", notes = "安全主体责任排行绑")
    @RequestMapping(value = "/findRanks", method = RequestMethod.POST)
    private  Map<String, Object> findRanks(@RequestBody Map map) {
        return indexEchartsServices.findRanks(map);
    }


}
